package com.qf.shiro.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 用户表
 */
@Data
@TableName(value = "sys_user")
public class SysUser {
    /**
     * 用户主键
     */
    @TableId(value = "user_id", type = IdType.INPUT)
    private Integer userId;

    /**
     * 姓名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 登录名
     */
    @TableField(value = "login_name")
    private String loginName;

    /**
     * 用户类型
     */
    @TableField(value = "user_type_id")
    private Integer userTypeId;

    /**
     * 部门ID
     */
    @TableField(value = "dept_type_id")
    private Integer deptTypeId;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    private Date createDate;

    /**
     * 1删除 0正常
     */
    @TableField(value = "del_status")
    private Integer delStatus;

    /**
     * 密码
     */
    @TableField(value = "`password`")
    private String password;

    public static final String COL_USER_ID = "user_id";

    public static final String COL_USERNAME = "username";

    public static final String COL_LOGIN_NAME = "login_name";

    public static final String COL_USER_TYPE_ID = "user_type_id";

    public static final String COL_DEPT_TYPE_ID = "dept_type_id";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_DEL_STATUS = "del_status";

    public static final String COL_PASSWORD = "password";
}